package com.adinnet.admin.child.mapper;

import com.adinnet.admin.child.model.Child;
import com.adinnet.admin.child.model.form.ChildForm;
import com.adinnet.admin.child.model.form.ChildRankForm;
import com.adinnet.admin.child.model.vo.ChildRank;
import com.adinnet.admin.child.model.vo.ChildResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 儿童表 Mapper 接口
 * </p>
 *
 * @author zYshuai
 * @since 2020-12-11
 */
public interface ChildMapper extends BaseMapper<Child> {

    List<ChildRank> queryRankList(Page<ChildRank> page, @Param("childRankForm")ChildRankForm childRankForm);

    List<ChildResp> queryChildList(Page<ChildResp> page, @Param("childForm") ChildForm childForm);

    void deleteIds(String childIds);
}
